<?php

/**
 * Cross Site Scripting filter settings
 * HTML4, HTML5
 * @link http://www.w3schools.com/tags/default.asp
 * @link http://www.w3schools.com/tags/html5.asp
 * @link http://www.htmlbook.ru/html/
 */

$config['autoclosed_tags'] = array('area','base','basefont','bgsound','br','col','colgroup','event-source','frame','hr','img','input','link','meta','param');

/**
 * Allowed attributes for all tags
 */
$config['common_allowed_attrs'] = array('class','id','title');

/**
 * Access for output empty attribute
 */
$config['output_empty_attribute'] = FALSE;

/**
 * Allow tags with attributes
 */
$config['white_tags'] = array(
	'a'				=> array('href','target'),
	'abbr'			=> array(),
	'acronym'		=> array(), // deprecated, use <abbr>
	'address'		=> array(),
	'article'		=> array(),
	'b'				=> array(),
	'blockquote'	=> array(),
	'br'			=> array(),
	'caption'		=> array(),
	'cite'			=> array(),
	'code'			=> array(),
	'dd'			=> array(),
	'del'			=> array('cite','datetime'),
	'div'			=> array('style'),
	'dfn'			=> array(),
	'dl'			=> array(),
	'dt'			=> array(),
	'em'			=> array(),
	'h1'			=> array(),
	'h2'			=> array(),
	'h3'			=> array(),
	'h4'			=> array(),
	'h5'			=> array(),
	'h6'			=> array(),
	'hr'			=> array(),
	'i'				=> array(),
	'img'			=> array('alt','src'),
	'ins'			=> array('cite','datetime'),
	'kbd'			=> array(),
	'li'			=> array(),
	'mark'			=> array(),
	'nav'			=> array(),
	'ol'			=> array(),
	'optgroup'		=> array('label'),
	'option'		=> array(),
	'p'				=> array(),
	'pre'			=> array(),
	'q'				=> array(),
	's'				=> array(), // deprecated, use <del>
	'samp'			=> array(),
	'select'		=> array(),
	'small'			=> array(),
	'span'			=> array('style'),
	'strike'		=> array(), // deprecated, use <del>
	'strong'		=> array(),
	'sub'			=> array(),
	'sup'			=> array(),
	'table'			=> array('cellpadding','cellspacing'),
	'tbody'			=> array(),
	'td'			=> array('colspan','rowspan','valign'),
	'textarea'		=> array(),
	'tfoot'			=> array(),
	'th'			=> array('align','colspan','rowspan','valign'),
	'thead'			=> array(),
	'time'			=> array('datetime'),
	'tr'			=> array('valign'),
	'u'				=> array(), // deprecated, no HTML5
	'ul'			=> array(),
	'var'			=> array()
);

// end of file